package control.authcore;

import base.standard.auth.AuthLogic;
import base.standard.constant.ErrorCode;

import java.util.List;

/**
 * Auth
 *
 * @description: 鉴权处理接口,实现auth
 * @author: cyj
 * @date 2020 -10-22 15:08:47
 */
public interface IAuth {

    /**
     * Auth *
     *
     * @param objects     objects 用户持有数据
     * @param needObjects need objects 需要的数据
     * @param authLogic   auth logic 需要数据的关系
     * @param errorCode   error code 失败提示码
     */
    void auth(List<String> objects, String[] needObjects, AuthLogic authLogic, ErrorCode errorCode);

}
